package com.talkingdata.hadoop.guard.bean;

public class NameNodeState {

    private long id;                // 编号
    private String serviceId;       // 集群namespace 名称
    private String nnId;            // namenode 编号
    private String address;         // 服务器ip地址
    private String serviceState;    // 服务状态
    private String rpcAddress;      // rpc地址  如: 127.0.0.1:9820
    private String httpAddress;     // http信息 如: 127.0.0.1:9870
    private String timestamp;       // 时间戳

    public NameNodeState() {
    }

    public NameNodeState(long id, String serviceId, String nnId, String address, String serviceState, String rpcAddress, String httpAddress, String timestamp) {
        this.id = id;
        this.serviceId = serviceId;
        this.nnId = nnId;
        this.address = address;
        this.serviceState = serviceState;
        this.rpcAddress = rpcAddress;
        this.httpAddress = httpAddress;
        this.timestamp = timestamp;
    }

    @Override
    public String toString() {
        return "NameNodeState{" +
                "serviceId='" + serviceId + '\'' +
                ", nnId='" + nnId + '\'' +
                ", address='" + address + '\'' +
                ", serviceState='" + serviceState + '\'' +
                ", rpcAddress='" + rpcAddress + '\'' +
                ", httpAddress='" + httpAddress + '\'' +
                ", timestamp='" + timestamp + '\'' +
                '}';
    }

    public NameNodeState(String serviceId, String nnId, String address, String serviceState, String rpcAddress, String httpAddress, String timestamp) {
        this.serviceId = serviceId;
        this.nnId = nnId;
        this.address = address;
        this.serviceState = serviceState;
        this.rpcAddress = rpcAddress;
        this.httpAddress = httpAddress;
        this.timestamp = timestamp;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getServiceId() {
        return serviceId;
    }

    public void setServiceId(String serviceId) {
        this.serviceId = serviceId;
    }


    public String getNnId() {
        return nnId;
    }

    public void setNnId(String nnId) {
        this.nnId = nnId;
    }


    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }


    public String getServiceState() {
        return serviceState;
    }

    public void setServiceState(String serviceState) {
        this.serviceState = serviceState;
    }


    public String getRpcAddress() {
        return rpcAddress;
    }

    public void setRpcAddress(String rpcAddress) {
        this.rpcAddress = rpcAddress;
    }


    public String getHttpAddress() {
        return httpAddress;
    }

    public void setHttpAddress(String httpAddress) {
        this.httpAddress = httpAddress;
    }


    public String getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

}
